package com.iakuil.app.domain.dto.cmd;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 出版社 编辑参数
 *
 * @author Kai
 * @date 2023-12-06
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class PressEdit implements Serializable {

    @Schema(description = "ID")
    @NotNull(message = "ID不能为空")
    private Long id;

    @Schema(description = "名称")
    @Size(max = 50, message = "出版社名称不能超过{max}")
    private String name;

    @Schema(description = "地址")
    @Size(max = 255, message = "出版社地址不能超过{max}")
    private String address;
}
